import { LoginFormState } from '@/types/account';
import request from '@/utils/request';

const accountAPI = '/account';

export const login = (account: LoginFormState): Promise<string> =>
	request.post(`${accountAPI}/login`, account);

export const init = (): Promise<boolean> => request.get(`${accountAPI}/init`);

export const hadInitData = (): Promise<boolean> => request.get(`${accountAPI}/has`);
